<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
            list-style: none;
        }
        a{
            text-decoration: none;
        }
        .logo-container,
        .box1,.box2
        {
            width: 55px;
            height: 55px;
        }
        .logo-container{
            position: relative;
            margin: 0 auto;
            overflow: hidden;
            border: 1px solid;
        }
        .box2,.box1{
            position: absolute;
            top: 0;
            background-color: orange;
        }
        .box1{
            left: 0;
            background-image: url(./images/mi-home.png);
            background-repeat: no-repeat;
            transition: left .3s linear;
        }
        .box2{
            left: -55px;
            background-image: url(./images/mi-logo.png);
            background-repeat: no-repeat;
            transition: left .3s linear;
        }
        .logo-container:hover .box2{
            left: 0;
        }
        .logo-container:hover .box1{
            left: 55px;
        }
    </style>
</head>
<body>
    <div class="logo-container">
        <div class="box1">
            
        </div>
        <div class="box2">
            
        </div>
    </div>
</body>
</html>